home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 November / Freeware November 1998.img / dist / fw_emacs.idb / usr / freeware / info / emacs-22.z / emacs-22 (.txt)
GNU Info File  |  1998-10-27  |  50KB  |  958 lines

  1. This is Info file ../info/emacs, produced by Makeinfo-1.63 from the
  2. input file emacs.texi.
  3. File: emacs,  Node: Resume Arguments,  Next: Environment,  Prev: Command Example,  Up: Command Arguments
  4. Resuming Emacs with Arguments
  5. =============================
  6.    You can specify action arguments for Emacs when you resume it after
  7. a suspension.  To prepare for this, put the following code in your
  8. `.emacs' file (*note Hooks::.):
  9.      (add-hook 'suspend-hook 'resume-suspend-hook)
  10.      (add-hook 'suspend-resume-hook 'resume-process-args)
  11.    As further preparation, you must execute the shell script
  12. `emacs.csh' (if you use csh as your shell) or `emacs.bash' (if you use
  13. bash as your shell).  These scripts define an alias named `edit', which
  14. will resume Emacs giving it new command line arguments such as files to
  15. visit.
  16.    Only action arguments work properly when you resume Emacs.  Initial
  17. arguments are not recognized--it's too late to execute them anyway.
  18.    Note that resuming Emacs (with or without arguments) must be done
  19. from within the shell that is the parent of the Emacs job.  This is why
  20. `edit' is an alias rather than a program or a shell script.  It is not
  21. possible to implement a resumption command that could be run from other
  22. subjobs of the shell; no way to define a command that could be made the
  23. value of `EDITOR', for example.  Therefore, this feature does not take
  24. the place of the Emacs Server feature (*note Emacs Server::.).
  25.    The aliases use the Emacs Server feature if you appear to have a
  26. server Emacs running.  However, they cannot determine this with complete
  27. accuracy.  They may think that a server is still running when in
  28. actuality you have killed that Emacs, because the file `/tmp/.esrv...'
  29. still exists.  If this happens, find that file and delete it.
  30. File: emacs,  Node: Environment,  Next: Display X,  Prev: Resume Arguments,  Up: Command Arguments
  31. Environment Variables
  32. =====================
  33.    This appendix describes how Emacs uses environment variables.  An
  34. environment variable is a string passed from the operating system to
  35. Emacs, and the collection of environment variables is known as the
  36. environment.  Environment variable names are case sensitive and it is
  37. conventional to use upper case letters only.
  38.    Because environment variables come from the operating system there
  39. is no general way to set them; it depends on the operating system and
  40. especially the shell that you are using.  For example, here's how to set
  41. the environment variable `ORGANIZATION' to `not very much' using bash:
  42.      export ORGANIZATION="not very much"
  43. and here's how to do it in csh or tcsh:
  44.      setenv ORGANIZATION "not very much"
  45.    When Emacs is set-up to use the X windowing system, it inherits the
  46. use of a large number of environment variables from the X library.  See
  47. the X documentation for more information.
  48. * Menu:
  49. * General Variables::     Environment variables that all versions of Emacs use.
  50. * Misc Variables::        Certain system specific variables.
  51. File: emacs,  Node: General Variables,  Next: Misc Variables,  Up: Environment
  52. General Variables
  53. -----------------
  54. `AUTHORCOPY'
  55.      The name of a file used to archive news articles posted with the
  56.      GNUS package.
  57. `CDPATH'
  58.      Used by the `cd' command.
  59. `DOMAINNAME'
  60.      The name of the internet domain that the machine running Emacs is
  61.      located in.  Used by the GNUS package.
  62. `EMACSDATA'
  63.      Used to initialize the variable `data-directory' used to locate the
  64.      architecture-independent files that come with Emacs.  Setting this
  65.      variable overrides the setting in `paths.h' when Emacs was built.
  66. `EMACSLOADPATH'
  67.      A colon-separated list of directories from which to load Emacs Lisp
  68.      files.  Setting this variable overrides the setting in `paths.h'
  69.      when Emacs was built.
  70. `EMACSLOCKDIR'
  71.      The directory that Emacs places lock files--files used to protect
  72.      users from editing the same files simultaneously.  Setting this
  73.      variable overrides the setting in `paths.h' when Emacs was built.
  74. `EMACSPATH'
  75.      The location of Emacs-specific binaries.  Setting this variable
  76.      overrides the setting in `paths.h' when Emacs was built.
  77. `ESHELL'
  78.      Used for shell-mode to override the `SHELL' environment variable.
  79. `HISTFILE'
  80.      The name of the file that shell commands are saved in between
  81.      logins.  This variable defaults to `~/.history' if you use (t)csh
  82.      as shell, to `~/.bash_history' if you use bash, to `~/.sh_history'
  83.      if you use ksh, and to `~/.history' otherwise.
  84. `HOME'
  85.      The location of the user's files in the directory tree; used for
  86.      expansion of file names starting with a tilde (`~').  On MS-DOS, it
  87.      defaults to the directory from which Emacs was started, with `/bin'
  88.      removed from the end if it was present.
  89. `HOSTNAME'
  90.      The name of the machine that Emacs is running on.
  91. `INCPATH'
  92.      A colon-separated list of directories.  Used by the `complete'
  93.      package to search for files.
  94. `INFOPATH'
  95.      A colon separated list of directories holding info files.  Setting
  96.      this variable overrides the setting in `paths.el' when Emacs was
  97.      built.
  98. `LOGNAME'
  99.      The user's login name.  See also `USER'.
  100. `MAIL'
  101.      The name of the user's system mail box.
  102. `MAILRC'
  103.      Name of file containing mail aliases.  This defaults to
  104.      `~/.mailrc'.
  105.      Name of setup file for the mh system.  This defaults to
  106.      `~/.mh_profile'.
  107. `NAME'
  108.      The real-world name of the user.
  109. `NNTPSERVER'
  110.      The name of the news server.  Used by the mh and GNUS packages.
  111. `ORGANIZATION'
  112.      The name of the organization to which you belong.  Used for
  113.      setting the `Organization:' header in your posts from the GNUS
  114.      package.
  115. `PATH'
  116.      A colon-separated list of directories in which executables reside.
  117.      (On MS-DOS, it is semicolon-separated instead.)  This variable is
  118.      used to set the Emacs Lisp variable `exec-path' which you should
  119.      consider to use instead.
  120. `PWD'
  121.      If set, this should be the default directory when Emacs was
  122.      started.
  123. `REPLYTO'
  124.      If set, this specifies an initial value for the variable
  125.      `mail-default-reply-to'.  *Note Mail Headers::.
  126. `SAVEDIR'
  127.      The name of a directory in which news articles are saved by
  128.      default.  Used by the GNUS package.
  129. `SHELL'
  130.      The name of an interpreter used to parse and execute programs run
  131.      from inside Emacs.
  132. `TERM'
  133.      The name of the terminal that Emacs is running on.  The variable
  134.      must be set unless Emacs is run in batch mode.  On MS-DOS, it
  135.      defaults to `internal', which specifies a built-in terminal
  136.      emulation that handles the machine's own display.
  137. `TERMCAP'
  138.      The name of the termcap library file describing how to program the
  139.      terminal specified by the `TERM' variable.  This defaults to
  140.      `/etc/termcap'.
  141. `TMPDIR'
  142.      Used by the Emerge package as a prefix for temporary files.
  143.      This specifies the current time zone and possibly also daylight
  144.      savings information.  On MS-DOS, the default is based on country
  145.      code; see the file `msdos.c' for details.
  146. `USER'
  147.      The user's login name.  See also `LOGNAME'.  On MS-DOS, this
  148.      defaults to `root'.
  149. `VERSION_CONTROL'
  150.      Used to initialize the `version-control' variable (*note Backup
  151.      Names::.).
  152. File: emacs,  Node: Misc Variables,  Prev: General Variables,  Up: Environment
  153. Misc Variables
  154. --------------
  155.    These variables are used only on particular configurations:
  156. `COMSPEC'
  157.      On MS-DOS, the name of the command interpreter to use.  This is
  158.      used to make a default value for the `SHELL' environment variable.
  159. `NAME'
  160.      On MS-DOS, this variable defaults to the value of the `USER'
  161.      variable.
  162. `TEMP'
  163. `TMP'
  164.      On MS-DOS, these specify the name of the directory for storing
  165.      temporary files in.
  166. `EMACSTEST'
  167.      On MS-DOS, this specifies a file to use to log the operation of the
  168.      internal terminal emulator.  This feature is useful for submitting
  169.      bug reports.
  170. `EMACSCOLORS'
  171.      Used on MS-DOS systems to set screen colors early, so that the
  172.      screen won't momentarily flash the default colors when Emacs
  173.      starts up.  The value of this variable should be two-character
  174.      encoding of the foreground (the first character) and the
  175.      background (the second character) colors of the default face.
  176.      Each character should be the hexadecimal code for the desired
  177.      color on a standard PC text-mode display.
  178.      Only the low three bits of the background color are actually used,
  179.      because the PC display supports only eight background colors.
  180. `WINDOW_GFX'
  181.      Used when initializing the Sun windows system.
  182. File: emacs,  Node: Display X,  Next: Font X,  Prev: Environment,  Up: Command Arguments
  183. Specifying the Display Name
  184. ===========================
  185.    The environment variable `DISPLAY' tells all X clients, including
  186. Emacs, where to display their windows.  Its value is set up by default
  187. in ordinary circumstances, when you start an X server and run jobs
  188. locally.  Occasionally you may need to specify the display yourself; for
  189. example, if you do a remote login and want to run a client program
  190. remotely, displaying on your local screen.
  191.    With Emacs, the main reason people change the default display is to
  192. let them log into another system, run Emacs on that system, but have the
  193. window displayed at their local terminal.  You might need to use login
  194. to another system because the files you want to edit are there, or
  195. because the Emacs executable file you want to run is there.
  196.    The syntax of the `DISPLAY' environment variable is
  197. `HOST:DISPLAY.SCREEN', where HOST is the host name of the X Window
  198. System server machine, DISPLAY is an arbitrarily-assigned number that
  199. distinguishes your server (X terminal) from other servers on the same
  200. machine, and SCREEN is a rarely-used field that allows an X server to
  201. control multiple terminal screens.  The period and the SCREEN field are
  202. optional.  If included, SCREEN is usually zero.
  203.    For example, if your host is named `glasperle' and your server is
  204. the first (or perhaps the only) server listed in the configuration, your
  205. `DISPLAY' is `glasperle:0.0'.
  206.    You can specify the display name explicitly when you run Emacs,
  207. either by changing the `DISPLAY' variable, or with the option `-d
  208. DISPLAY' or `--display=DISPLAY'.  Here is an example:
  209.      emacs --display=glasperle:0 &
  210.    You can inhibit the direct use of X with the `-nw' option.  This is
  211. also an initial option.  It tells Emacs to display using ordinary ASCII
  212. on its controlling terminal.
  213.    Sometimes, security arrangements prevent a program on a remote system
  214. from displaying on your local system.  In this case, trying to run Emacs
  215. produces messages like this:
  216.      Xlib:  connection to "glasperle:0.0" refused by server
  217. You might be able to overcome this problem by using the `xhost' command
  218. on the local system to give permission for access from your remote
  219. machine.
  220. File: emacs,  Node: Font X,  Next: Colors X,  Prev: Display X,  Up: Command Arguments
  221. Font Specification Options
  222. ==========================
  223.    By default, Emacs displays text in the font named `9x15', which
  224. makes each character nine pixels wide and fifteen pixels high.  You can
  225. specify a different font on your command line through the option `-fn
  226. NAME'.
  227. `-fn NAME'
  228.      Use font NAME as the default font.
  229. `--font=NAME'
  230.      `--font' is an alias for `-fn'.
  231.    Under X, each font has a long name which consists of eleven words or
  232. numbers, separated by dashes.  Some fonts also have shorter
  233. nicknames--`9x15' is such a nickname.  You can use either kind of name.
  234. You can use wild card patterns for the font name; then Emacs lets X
  235. choose one of the fonts that match the pattern.  Here is an example,
  236. which happens to specify the font whose nickname is `6x13':
  237.      emacs -fn "-misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1" &
  238. You can also specify the font in your `.Xdefaults' file:
  239.      emacs.font: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1
  240.    A long font name has the following form:
  241.      -MAKER-FAMILY-WEIGHT-SLANT-WIDTHTYPE-STYLE...
  242.      ...-PIXELS-HEIGHT-HORIZ-VERT-SPACING-WIDTH-CHARSET
  243. FAMILY
  244.      This is the name of the font family-for example, `courier'.
  245. WEIGHT
  246.      This is normally `bold', `medium' or `light'.  Other words may
  247.      appear here in some font names.
  248. SLANT
  249.      This is `r' (roman), `i' (italic), `o' (oblique), `ri' (reverse
  250.      italic), or `ot' (other).
  251. WIDTHTYPE
  252.      This is normally `condensed', `extended', `semicondensed' or
  253.      `normal'.  Other words may appear here in some font names.
  254. STYLE
  255.      This is an optional additional style name.  Usually it is
  256.      empty--most long font names have two hyphens in a row at this
  257.      point.
  258. PIXELS
  259.      This is the font height, in pixels.
  260. HEIGHT
  261.      This is the font height on the screen, measured in printer's points
  262.      (approximately 1/72 of an inch), times ten.  For a given vertical
  263.      resolution, HEIGHT and PIXELS are proportional; therefore, it is
  264.      common to specify just one of them and use `*' for the other.
  265. HORIZ
  266.      This is the horizontal resolution, in pixels per inch, of the
  267.      screen for which the font is intended.
  268.      This is the vertical resolution, in dots per inch, of the screen
  269.      for which the font is intended.  Normally the resolution of the
  270.      fonts on your system is the right value for your screen;
  271.      therefore, you normally specify `*' for this and HORIZ.
  272. SPACING
  273.      This is `m' (monospace), `p' (proportional) or `c' (character
  274.      cell).  Emacs can use `m' and `c' fonts.
  275. WIDTH
  276.      This is the average character width, in pixels, times ten.
  277. CHARSET
  278.      This is the character set that the font depicts.  Normally you
  279.      should use `iso8859-1'.
  280.    Use only fixed width fonts--that is, fonts in which all characters
  281. have the same width; Emacs cannot yet handle display properly for
  282. variable width fonts.  Any font with `m' or `c' in the SPACING field of
  283. the long name is a fixed width font.  Here's how to use the `xlsfonts'
  284. program to list all the fixed width fonts available on your system:
  285.      xlsfonts -fn '*x*'
  286.      xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-m*'
  287.      xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-c*'
  288. To see what a particular font looks like, use the `xfd' command.  For
  289. example:
  290.      xfd -fn 6x13
  291. displays the entire font `6x13'.
  292.    While running Emacs, you can set the font of the current frame
  293. (*note Frame Parameters::.) or for a specific kind of text (*note
  294. Faces::.).
  295. File: emacs,  Node: Colors X,  Next: Window Size X,  Prev: Font X,  Up: Command Arguments
  296. Window Color Options
  297. ====================
  298.    On a color display, you can specify which color to use for various
  299. parts of the Emacs display.  To find out what colors are available on
  300. your system, look at the `/usr/lib/X11/rgb.txt' file.  If you do not
  301. specify colors, the default for the background is white and the default
  302. for all other colors is black.  On a monochrome display, the foreground
  303. is black, the background is white, and the border is gray if the
  304. display supports that.
  305.    Here is a list of the options for specifying colors:
  306. `-fg COLOR'
  307. `--foreground-color=COLOR'
  308.      Specify the foreground color.
  309. `-bg COLOR'
  310. `--background-color=COLOR'
  311.      Specify the background color.
  312. `-bd COLOR'
  313. `--border-color=COLOR'
  314.      Specify the color of the border of the X window.
  315. `-cr COLOR'
  316. `--cursor-color=COLOR'
  317.      Specify the color of the Emacs cursor which indicates where point
  318.      is.
  319. `-ms COLOR'
  320. `--mouse-color=COLOR'
  321.      Specify the color for the mouse cursor when the mouse is in the
  322.      Emacs window.
  323. `--reverse-video'
  324.      Reverse video--swap the foreground and background colors.
  325.    For example, to use a coral mouse cursor and a slate blue text
  326. cursor, enter:
  327.      emacs -ms coral -cr 'slate blue' &
  328.    You can reverse the foreground and background colors through the
  329. `-r' option or with the X resource `reverseVideo'.
  330. File: emacs,  Node: Window Size X,  Next: Borders X,  Prev: Colors X,  Up: Command Arguments
  331. Options for Window Geometry
  332. ===========================
  333.    The `-geometry' option controls the size and position of the initial
  334. Emacs frame.  Here is the format for specifying the window geometry:
  335. `-g WIDTHxHEIGHT{+-}XOFFSET{+-}YOFFSET'
  336.      Specify window size WIDTH and HEIGHT (measured in character
  337.      columns and lines), and positions XOFFSET and YOFFSET (measured in
  338.      pixels).
  339. `--geometry=WIDTHxHEIGHT{+-}XOFFSET{+-}YOFFSET'
  340.      This is another way of writing the same thing.
  341. `{+-}' means either a plus sign or a minus sign.  A plus sign before
  342. XOFFSET means it is the distance from the left side of the screen; a
  343. minus sign means it counts from the right side.  A plus sign before
  344. YOFFSET means it is the distance from the top of the screen, and a
  345. minus sign there indicates the distance from the bottom.  The values
  346. XOFFSET and YOFFSET may themselves be positive or negative, but that
  347. doesn't change their meaning, only their direction.
  348.    Emacs uses the same units as `xterm' does to interpret the geometry.
  349. The WIDTH and HEIGHT are measured in characters, so a large font
  350. creates a larger frame than a small font.  The XOFFSET and YOFFSET are
  351. measured in pixels.
  352.    Since the mode line and the echo area occupy the last 2 lines of the
  353. frame, the height of the initial text window is 2 less than the height
  354. specified in your geometry.  In non-X-toolkit versions of Emacs, the
  355. menu bar also takes one line of the specified number.
  356.    You do not have to specify all of the fields in the geometry
  357. specification.
  358.    If you omit both XOFFSET and YOFFSET, the window manager decides
  359. where to put the Emacs frame, possibly by letting you place it with the
  360. mouse.  For example, `164x55' specifies a window 164 columns wide,
  361. enough for two ordinary width windows side by side, and 55 lines tall.
  362.    The default width for Emacs is 80 characters and the default height
  363. is 40 lines.  You can omit either the width or the height or both.  If
  364. you start the geometry with an integer, Emacs interprets it as the
  365. width.  If you start with an `x' followed by an integer, Emacs
  366. interprets it as the height.  Thus, `81' specifies just the width;
  367. `x45' specifies just the height.
  368.    If you start with `+' or `-', that introduces an offset, which means
  369. both sizes are omitted.  Thus, `-3' specifies the XOFFSET only.  (If
  370. you give just one offset, it is always XOFFSET.)  `+3-3' specifies both
  371. the XOFFSET and the YOFFSET, placing the frame near the bottom left of
  372. the screen.
  373.    You can specify a default for any or all of the fields in
  374. `.Xdefaults' file, and then override selected fields with a
  375. `--geometry' option.
  376. File: emacs,  Node: Borders X,  Next: Title X,  Prev: Window Size X,  Up: Command Arguments
  377. Internal and External Borders
  378. =============================
  379.    An Emacs frame has an internal border and an external border.  The
  380. internal border is an extra strip of the background color around all
  381. four edges of the frame.  Emacs itself adds the internal border.  The
  382. external border is added by the window manager outside the internal
  383. border; it may contain various boxes you can click on to move or iconify
  384. the window.
  385. `-ib WIDTH'
  386. `--internal-border=WIDTH'
  387.      Specify WIDTH as the width of the internal border.
  388. `-bw WIDTH'
  389. `--border-width=WIDTH'
  390.      Specify WIDTH as the width of the main border.
  391.    When you specify the size of the frame, that does not count the
  392. borders.  The frame's position is measured from the outside edge of the
  393. external border.
  394.    Use the `-ib N' option to specify an internal border N pixels wide.
  395. The default is 1.  Use `-bw N' to specify the width of the external
  396. border (though the window manager may not pay attention to what you
  397. specify).  The default width of the external border is 2.
  398. File: emacs,  Node: Title X,  Next: Icons X,  Prev: Borders X,  Up: Command Arguments
  399. Frame Titles
  400. ============
  401.    An Emacs frame may or may not have a specified title.  The frame
  402. title, if specified, appears in window decorations and icons as the name
  403. of the frame.  If an Emacs frame has no specified title, the default
  404. title is the name of the executable program (if there is only one frame)
  405. or the selected window's buffer name (if there is more than one frame).
  406.    You can specify a title for the initial Emacs frame with a command
  407. line option:
  408. `-title TITLE'
  409. `--title=TITLE'
  410. `-T TITLE'
  411.      Specify TITLE as the title for the initial Emacs frame.
  412.    The `--name' option (*note Resources X::.) also specifies the title
  413. for the initial Emacs frame.
  414. File: emacs,  Node: Icons X,  Next: Resources X,  Prev: Title X,  Up: Command Arguments
  415. Icons
  416. =====
  417.    Most window managers allow the user to "iconify" a frame, removing
  418. it from sight, and leaving a small, distinctive "icon" window in its
  419. place.  Clicking on the icon window makes the frame itself appear again.
  420. If you have many clients running at once, you can avoid cluttering up
  421. the screen by iconifying most of the clients.
  422. `--icon-type'
  423.      Use a picture of a gnu as the Emacs icon.
  424. `-iconic'
  425. `--iconic'
  426.      Start Emacs in iconified state.
  427.    The `-i' or `--icon-type' option tells Emacs to use an icon window
  428. containing a picture of the GNU gnu.  If omitted, Emacs lets the window
  429. manager choose what sort of icon to use--usually just a small rectangle
  430. containing the frame's title.
  431.    The `-iconic' option tells Emacs to begin running as an icon, rather
  432. than opening a frame right away.  In this situation, the icon window
  433. provides only indication that Emacs has started; the usual text frame
  434. doesn't appear until you deiconify it.
  435. File: emacs,  Node: Resources X,  Next: Lucid Resources,  Prev: Icons X,  Up: Command Arguments
  436. X Resources
  437. ===========
  438.    Programs running under the X Window System organize their user
  439. options under a hierarchy of classes and resources.  You can specify
  440. default values for these options in your X resources file, usually named
  441. `~/.Xdefaults'.
  442.    Each line in the file specifies a value for one option or for a
  443. collection of related options, for one program or for several programs
  444. (optionally even for all programs).
  445.    Programs define named resources with particular meanings.  They also
  446. define how to group resources into named classes.  For instance, in
  447. Emacs, the `internalBorder' resource controls the width of the internal
  448. border, and the `borderWidth' resource controls the width of the
  449. external border.  Both of these resources are part of the `BorderWidth'
  450. class.  Case distinctions are significant in these names.
  451.    In `~/.Xdefaults', you can specify a value for a single resource on
  452. one line, like this:
  453.      emacs.borderWidth: 2
  454. Or you can use a class name to specify the same value for all resources
  455. in that class.  Here's an example:
  456.      emacs.BorderWidth: 2
  457.    If you specify a value for a class, it becomes the default for all
  458. resources in that class.  You can specify values for individual
  459. resources as well; these override the class value, for those particular
  460. resources.  Thus, this example specifies 2 as the default width for all
  461. borders, but overrides this value with 4 for the external border:
  462.      emacs.Borderwidth: 2
  463.      emacs.borderwidth: 4
  464.    The order in which the lines appear in the file does not matter.
  465. Also, command-line options always override the X resources file.
  466.    The string `emacs' in the examples above is also a resource name.
  467. It actually represents the name of the executable file that you invoke
  468. to run Emacs.  If Emacs is installed under a different name, it looks
  469. for resources under that name instead of `emacs'.
  470. `-name NAME'
  471. `--name=NAME'
  472.      Use NAME as the resource name (and the title) for the initial
  473.      Emacs frame.  This option does not affect subsequent frames, but
  474.      Lisp programs can specify frame names when they create frames.
  475.      If you don't specify this option, the default is to use the Emacs
  476.      executable's name as the resource name.
  477. `-xrm RESOURCE-VALUES'
  478. `--xrm=RESOURCE-VALUES'
  479.      Specify X resource values for this Emacs job (see below).
  480.    For consistency, `-name' also specifies the name to use for other
  481. resource values that do not belong to any particular frame.
  482.    The resources that name Emacs invocations also belong to a class; its
  483. name is `Emacs'.  If you write `Emacs' instead of `emacs', the resource
  484. applies to all frames in all Emacs jobs, regardless of frame titles and
  485. regardless of the name of the executable file.  Here is an example:
  486.      Emacs.BorderWidth: 2
  487.      Emacs.borderWidth: 4
  488.    You can specify a string of additional resource values for Emacs to
  489. use with the command line option `-xrm RESOURCES'.  The text RESOURCES
  490. should have the same format that you would use inside a file of X
  491. resources.  To include multiple resource specifications in DATA, put a
  492. newline between them, just as you would in a file.  You can also use
  493. `#include "FILENAME"' to include a file full of resource
  494. specifications.  Resource values specified with `-xrm' take precedence
  495. over all other resource specifications.
  496.    The following table lists the resource names that designate options
  497. for Emacs, each with the class that it belongs to:
  498. `background' (class `Background')
  499.      Background color name.
  500. `bitmapIcon' (class `BitmapIcon')
  501.      Use a bitmap icon (a picture of a gnu) if `on', let the window
  502.      manager choose an icon if `off'.
  503. `borderColor' (class `BorderColor')
  504.      Color name for the external border.
  505. `borderWidth' (class `BorderWidth')
  506.      Width in pixels of the external border.
  507. `cursorColor' (class `Foreground')
  508.      Color name for text cursor (point).
  509. `font' (class `Font')
  510.      Font name for text.
  511. `foreground' (class `Foreground')
  512.      Color name for text.
  513. `geometry' (class `Geometry')
  514.      Window size and position.  Be careful not to specify this resource
  515.      as `emacs*geometry', because that may affect individual menus as
  516.      well as the Emacs frame itself.
  517.      If this resource specifies a position, that position applies only
  518.      to the initial Emacs frame (or, in the case of a resource for a
  519.      specific frame name, only that frame).  However, the size if
  520.      specified here applies to all frames.
  521. `iconName' (class `Title')
  522.      Name to display in the icon.
  523. `internalBorder' (class `BorderWidth')
  524.      Width in pixels of the internal border.
  525. `menuBar' (class `MenuBar')
  526.      Give frames menu bars if `on'; don't have menu bars if `off'.
  527. `paneFont' (class `Font')
  528.      Font name for menu pane titles, in non-toolkit versions of Emacs.
  529. `pointerColor' (class `Foreground')
  530.      Color of the mouse cursor.
  531. `reverseVideo' (class `ReverseVideo')
  532.      Switch foreground and background default colors if `on', use
  533.      colors as specified if `off'.
  534. `verticalScrollBars' (class `ScrollBars')
  535.      Give frames scroll bars if `on'; don't have scroll bars if `off'.
  536. `selectionFont' (class `Font')
  537.      Font name for pop-up menu items, in non-toolkit versions of Emacs.
  538.      (For toolkit versions, see *Note Lucid Resources::, also see
  539.      *Note Motif Resources::.)
  540. `title' (class `Title')
  541.      Name to display in the title bar of the initial Emacs frame.
  542.    Here are resources for controlling the appearance of particular faces
  543. (*note Faces::.):
  544. `FACE.attributeFont'
  545.      Font for face FACE.
  546. `FACE.attributeForeground'
  547.      Foreground color for face FACE.
  548. `FACE.attributeBackground'
  549.      Background color for face FACE.
  550. `FACE.attributeUnderline'
  551.      Underline flag for face FACE.  Use `on' or `true' for yes.
  552. File: emacs,  Node: Lucid Resources,  Next: Motif Resources,  Prev: Resources X,  Up: Command Arguments
  553. Lucid Menu X Resources
  554. ======================
  555.    If the Emacs installed at your site was built to use the X toolkit
  556. with the Lucid menu widgets, then the menu bar is a separate widget and
  557. has its own resources.  The resource names contain `pane.menubar'
  558. (following, as always, the name of the Emacs invocation or `Emacs'
  559. which stands for all Emacs invocations).  Specify them like this:
  560.      Emacs.pane.menubar.RESOURCE:  VALUE
  561. For example, to specify the font `8x16' for the menu bar items, write
  562. this:
  563.      Emacs.pane.menubar.font:  8x16
  564.    Resources for *non-menubar* toolkit popup menus have `menu*', in
  565. like fashion.  For example, to specify the font `8x16' for the popup
  566. menu items, write this:
  567.      Emacs.menu*.font:    8x16
  568.    For dialog boxes, use `dialog' instead of `menu':
  569.      Emacs.dialog*.font:    8x16
  570.    Experience shows that on some systems you may need to add `shell.'
  571. before the `pane.menubar' or `menu*'.  On some other systems, you must
  572. not add `shell.'.
  573.    Here is a list of the specific resources for menu bars and popup
  574. menus:
  575. `font'
  576.      Font for menu item text.
  577. `foreground'
  578.      Color of the foreground.
  579. `background'
  580.      Color of the background.
  581. `buttonForeground'
  582.      In the menu bar, the color of the foreground for a selected item.
  583. `horizontalSpacing'
  584.      Horizontal spacing in pixels between items.  Default is 3.
  585. `verticalSpacing'
  586.      Vertical spacing in pixels between items.  Default is 1.
  587. `arrowSpacing'
  588.      Horizontal spacing between the arrow (which indicates a submenu)
  589.      and the associated text.  Default is 10.
  590. `shadowThickness'
  591.      Thickness of shadow line around the widget.
  592. File: emacs,  Node: Motif Resources,  Prev: Lucid Resources,  Up: Command Arguments
  593. Motif Menu X Resources
  594. ======================
  595.    If the Emacs installed at your site was built to use the X toolkit
  596. with the Motif widgets, then the menu bar is a separate widget and has
  597. its own resources.  The resource names contain `pane.menubar'
  598. (following, as always, the name of the Emacs invocation or `Emacs'
  599. which stands for all Emacs invocations).  Specify them like this:
  600.      Emacs.pane.menubar.SUBWIDGET.RESOURCE:  VALUE
  601.    Each individual string in the menu bar is a subwidget; the
  602. subwidget's name is the same as the menu item string.  For example, the
  603. word `Files' in the menu bar is part of a subwidget named
  604. `emacs.pane.menubar.Files'.  Most likely, you want to specify the same
  605. resources for the whole menu bar.  To do this, use `*' instead of a
  606. specific subwidget name.  For example, to specify the font `8x16' for
  607. the menu bar items, write this:
  608.      Emacs.pane.menubar.*.fontList:  8x16
  609. This also specifies the resource value for submenus.
  610.    Each item in a submenu in the menu bar also has its own name for X
  611. resources; for example, the `Files' submenu has an item named `Save
  612. Buffer'.  A resource specification for a submenu item looks like this:
  613.      Emacs.pane.menubar.popup_*.MENU.ITEM.RESOURCE: VALUE
  614. For example, here's how to specify the font for the `Save Buffer' item:
  615.      Emacs.pane.menubar.popup_*.Files.Save Buffer.fontList: 8x16
  616.    For an item in a second-level submenu, such as `Check Message' under
  617. `Spell' under `Edit', the resource fits this template:
  618.      Emacs.pane.menubar.popup_*.popup_*.MENU.RESOURCE: VALUE
  619. For example,
  620.      Emacs.pane.menubar.popup_*.popup_*.Spell.Check Message: VALUE
  621.    It's impossible to specify a resource for all the menu bar items
  622. without also specifying it for the submenus as well.  So if you want the
  623. submenu items to look different from the menu bar itself, you must ask
  624. for that in two steps.  First, specify the resource for all of them;
  625. then, override the value for submenus alone.  Here is an example:
  626.      Emacs.pane.menubar.*.fontList:  8x16
  627.      Emacs.pane.menubar.popup_*.fontList: 8x16
  628.    For toolkit popup menus, use `menu*' instead of `pane.menubar'.  For
  629. example, to specify the font `8x16' for the popup menu items, write
  630. this:
  631.      Emacs.menu*.fontList:  8x16
  632.    Here is a list of the specific resources for menu bars and popup
  633. menus:
  634. `armColor'
  635.      The color to show in an armed button.
  636. `fontList'
  637.      The font to use.
  638. `marginBottom'
  639. `marginHeight'
  640. `marginLeft'
  641. `marginRight'
  642. `marginTop'
  643. `marginWidth'
  644.      Amount of space to leave around the item, within the border.
  645. `borderWidth'
  646.      The width of border around the menu item, on all sides.
  647. `shadowThickness'
  648.      The width of the border shadow.
  649. `bottomShadowColor'
  650.      The color for the border shadow, on the bottom and the right.
  651. `topShadowColor'
  652.      The color for the border shadow, on the bottom and the right.
  653. File: emacs,  Node: Antinews,  Next: MS-DOS,  Prev: Command Arguments,  Up: Top
  654. Emacs 19.28 and 19.29 Antinews
  655. ******************************
  656.    For those users who live backwards in time, here is information about
  657. downgrading to Emacs version 19.28 or 19.29.  We hope you will enjoy the
  658. greater simplicity that results from the absence of certain Emacs 19.34
  659. features.
  660.    * This version doesn't support Windows NT, or the DEC Alpha.
  661.    * In Emacs 19.28, or even 19.29, the features for controlling
  662.      indentation in C are much simpler.  There is a separate variable
  663.      for each aspect of indentation which you can control.  Here is a
  664.      list of them:
  665.     `c-indent-level'
  666.           Level of indentation of C statements with respect to
  667.           containing block.
  668.     `c-label-offset'
  669.           Offset of C label lines and case statements relative to usual
  670.           indentation.
  671.     `c-continued-brace-offset'
  672.           Extra indentation for substatements that start with
  673.           open-braces.  This is in addition to
  674.           `c-continued-statement-offset'.
  675.     `c-continued-statement-offset'
  676.           Extra indentation for lines not starting new statements.
  677.     `c-brace-offset'
  678.           Extra indentation for braces, compared with other text in
  679.           same context.
  680.     `c-brace-imaginary-offset'
  681.           Imagined indentation of a C open brace that actually follows
  682.           a statement.
  683.     `c-argdecl-indent'
  684.           Indentation level of declarations of C function arguments.
  685.    * There is no support for editing formatted text.  The text formatter
  686.      TeX does a much better job of formatting than any formatted text
  687.      editor; we recommend you learn to use it.
  688.    * `C-Mouse-2' now runs the menu for setting the default font.
  689.    * F1 is no longer an alias for the Help key; you must actually type
  690.      `C-h' if you want help.
  691.    * Integers and buffer sizes are limited to 24 bits on most machines.
  692.      But as memory gets more expensive, you won't want to edit such
  693.      large files any more.
  694.    * There are no indirect buffers, so you can only display one view of
  695.      an outline.  Meanwhile, the prefix key for Outline minor mode is
  696.      now `C-c C-o'.
  697.    * When you are in Transient Mark mode, incremental search always
  698.      deactivates the mark.
  699.    * Dynamic abbrev completion has been eliminated in 19.28, and some
  700.      of the other dynamic abbrev customization features are also gone.
  701.    * In Dired, Occur mode, Compilation mode, and other such modes, you
  702.      must use `C-c C-c' to select the item point is on.  RET won't do
  703.      it.
  704.    * `M-x buffer-menu' now displays the menu buffer in another window.
  705.    * The VC (version control) package no longer supports CVS or
  706.      selecting branches other than the principal branch.
  707.    * There is no `recover-session' command; if Emacs crashes, you simply
  708.      have to remember which files you were editing before the crash,
  709.      and use `recover-file' on the individual files.
  710.    * In Emacs Lisp mode, `C-M-x' now lets `defvar' operate as it
  711.      usually does--setting the value of the variable only if it has no
  712.      value yet.  Use `ESC ESC' to evaluate a Lisp expression, instead
  713.      of `M-:'.
  714.    * GNU-standard long option names are not supported.  (Real hackers
  715.      prefer the shorter single-dash names, to save typing.)  All the
  716.      initial options must come before all the action options, and
  717.      whatever initial options you use must appear in this order: `-t',
  718.      `-d', `-nw', `-batch', `-q' or `-no-init-file', `-no-site-file',
  719.      `-u' or `-user', `-debug-init'.
  720.    * Many special-case kludges for MS-DOS have been removed.  This means
  721.      that many features don't work on MS-DOS; however, the code of Emacs
  722.      is much simpler.
  723.      For instance, you cannot print from within Emacs, Dired doesn't
  724.      support shell wildcards in filenames, some Lisp packages won't
  725.      work because their standard filenames are invalid on MS-DOS,
  726.      `display-time' doesn't work, Font Lock mode won't work unless you
  727.      create some faces by hand first, and `call-process' cannot
  728.      redirect `stderr'.
  729.      As an additional bonus, you get random characters inserted into the
  730.      buffer without a warning (unless you're clever enough to discover
  731.      that setting `visible-bell' makes this problem to go away).
  732.      In a word, it's a great relief for those who still need proof that
  733.      MS-DOG isn't a real operating system.
  734. File: emacs,  Node: MS-DOS,  Next: Manifesto,  Prev: Antinews,  Up: Top
  735. MS-DOS Issues
  736. *************
  737.    This section briefly describes the peculiarities of using Emacs under
  738. the MS-DOS "operating system" (also known as "MS-DOG").  If you build
  739. Emacs for MS-DOS, the binary will also run on Windows 3, Windows NT,
  740. Windows 95, or OS-2 as a DOS application; the information in this
  741. chapter applies for all of those systems, if you use an Emacs that was
  742. built for MS-DOS.
  743.    Note that it is possible to build Emacs specifically for Windows NT
  744. or Windows 95.  If you do that, most of this chapter does not apply;
  745. instead, you get behavior much closer to what is documented in the rest
  746. of the manual, including support for long file names, multiple frames,
  747. scroll bars, mouse menus, and subprocesses.  However, the section on
  748. text files and binary files does still apply.  There are also two
  749. sections at the end of this chapter which apply specifically for Windows
  750. NT and 95.
  751. * Menu:
  752. * Keyboard and Mouse on MS-DOS::
  753. * Display on MS-DOS::
  754. * File Names on MS-DOS::
  755. * Text and Binary::
  756. * Printing and MS-DOS::
  757. * Subprocesses on MS-DOS::
  758. * Windows Subprocesses::
  759. * System Menu on Windows::
  760. File: emacs,  Node: Keyboard and Mouse on MS-DOS,  Next: Display on MS-DOS,  Up: MS-DOS
  761. Keyboard and Mouse on MS-DOS
  762. ============================
  763.    The PC keyboard maps use the left Alt key as the META key.  You have
  764. two choices for emulating the SUPER and HYPER keys: either the right
  765. CONTROL key or the right ALT key by setting the variables
  766. `dos-hyper-key' and `dos-super-key' to 1 or 2 respectively.
  767.    The variable `dos-keypad-mode' is a flag variable which controls
  768. what key codes are returned by keys in the numeric keypad.  There is no
  769. dedicated LFD key; use `C-j' instead.  You can also define the kp-enter
  770. key to act as LFD, by putting the following line into your `_emacs'
  771. file:
  772.      ;; Make the Enter key from the Numeric keypad act as LFD.
  773.      (define-key function-key-map [kp-enter] [?\C-j])
  774.    The key which is called DEL in Emacs (because that's how it is
  775. designated on most workstations) is known as BS (backspace) on a PC.
  776. That is why the PC-specific terminal initialization remaps the BS key
  777. to act as DEL; the DEL key is remapped to act as `C-d' for the same
  778. reasons.
  779.    Emacs on MS-DOS supports a mouse (on the default terminal only).
  780. The mouse commands work as documented, including those that use menus
  781. and the menu bar (*note Menu Bars::.).  Scroll bars don't work in
  782. MS-DOS Emacs.  PC mice usually have only two buttons; these act as
  783. `Mouse-1' and `Mouse-2', but if you press both of them together, that
  784. has the effect of `Mouse-3'.
  785.    The variable `dos-display-scancodes', when non-`nil', directs Emacs
  786. to display the ASCII value and the keyboard scan code of each
  787. keystroke; this feature serves as a complement to the `view-lossage'
  788. command, for debugging.
  789. File: emacs,  Node: Display on MS-DOS,  Next: File Names on MS-DOS,  Prev: Keyboard and Mouse on MS-DOS,  Up: MS-DOS
  790. Display on MS-DOS
  791. =================
  792.    Display on MS-DOS cannot use multiple fonts, but it does support
  793. multiple faces, each of which can specify a foreground and a background
  794. color.  Therefore, you can get the full functionality of Emacs packages
  795. which use fonts (such as `font-lock', Enriched Text mode, and others)
  796. by defining the relevant faces to use different colors.  Use the
  797. `list-colors-display' and `list-faces-display' commands (*note
  798. Modifying Faces::.) to see what colors and faces are available and what
  799. they look like.
  800.    Multiple frames (*note Frames::.) are supported on MS-DOS, but they
  801. all overlap, so you only see a single frame at any given moment.  That
  802. single visible frame occupies the entire screen.  When you run Emacs
  803. under Windows version 3, you can make the visible frame smaller than
  804. the full screen, but Emacs still cannot display more than a single
  805. frame at a time.
  806.    The `mode4350' command switches the display to 43 or 50 lines,
  807. depending on your hardware; the `mode25' command switches to the
  808. default 80x25 screen size.
  809.    By default, Emacs only knows how to set screen sizes of 80 columns by
  810. 25 or 43/50 rows.  However, if your video adapter has special video
  811. modes that will switch the display to other sizes, you can have Emacs
  812. support those too.  When you ask Emacs to switch the frame to N rows by
  813. M cols dimensions, it checks if there is a variable called
  814. `screen-dimensions-NxM', and if so, uses its value (which must be an
  815. integer) as the video mode to switch to.  (Emacs switches to that video
  816. mode by calling the BIOS `Set Video Mode' function with the value of
  817. `screen-dimensions-NxM' in the `AL' register.)  For example, suppose
  818. your adapter will switch to 66x80 dimensions when put into video mode
  819. 85.  Then you can make Emacs support this screen size by putting the
  820. following into your `_emacs' file:
  821.      (setq screen-dimensions-66x80 85)
  822.    Since Emacs on MS-DOS can only set the frame size to specific
  823. supported dimensions, it cannot honor every possible frame resizing
  824. request.  When an unsupported size is requested, Emacs chooses the next
  825. larger supported size beyond the specified size.  For example, if you
  826. ask for 36x80 frame, you will get 50x80 instead.
  827.    The variables `screen-dimensions-NxM' are used only when they
  828. exactly match the specified size; the search for the next larger
  829. supported size ignores them.  In the above example, even if your VGA
  830. supports 44x80 dimensions and you define a variable
  831. `screen-dimensions-44x80' with a suitable value, you will still get
  832. 50x80 screen when you ask for a 36x80 frame.  If you want to get the
  833. 44x80 size in this case, you can do it by setting the variable named
  834. `screen-dimensions-36x80' with the same video mode value as
  835. `screen-dimensions-44x80'.
  836.    Changing frame dimensions on MS-DOS has the effect of changing all
  837. the other frames to the new dimensions.
  838. File: emacs,  Node: File Names on MS-DOS,  Next: Text and Binary,  Prev: Display on MS-DOS,  Up: MS-DOS
  839. File Names on MS-DOS
  840. ====================
  841.    MS-DOS normally uses a backslash, `\', to separate name units within
  842. a file name, instead of the slash used on other systems.  Emacs on
  843. MS-DOS permits use of either slash or backslash, and also knows about
  844. drive letters in file names.
  845.    On MS-DOS, file names are case-insensitive and limited to eight
  846. characters, plus optionally a period and three more characters.  Emacs
  847. knows enough about these limitations to handle file names that were
  848. meant for other operating systems.  For instance, leading dots `.' in
  849. file names are invalid in MS-DOS, so Emacs transparently converts them
  850. to underscores `_'; thus your default init file (*note Init File::.) is
  851. called `_emacs' on MS-DOS.  Excess characters before or after the
  852. period are generally ignored by MS-DOS itself, so if you, e.g., visit a
  853. file `LongFileName.EvenLongerExtension', you will silently get
  854. `longfile.eve'; but Emacs will still display the long file name on the
  855. mode line.  Other than that, it's up to you to specify file names which
  856. are valid under MS-DOS; the transparent conversion as described above
  857. only works on file names built into Emacs.
  858.    The above restrictions on the file names on MS-DOS make it almost
  859. impossible to construct the name of a backup file (*note Backup
  860. Names::.) without losing some of the original file name characters.  For
  861. example, the name of a backup file for `docs.txt' is `docs.tx~' even if
  862. single backup is used.
  863.    If you run Emacs as a DOS application under Windows 95 or NT, you can
  864. turn on support for long file names.  If you do that, Emacs doesn't
  865. truncate file names or convert them to lower case; instead, it uses the
  866. file names that you specify, verbatim.  To enable long file name
  867. support, set the environment variable `LFN' to `y' before starting
  868. Emacs.
  869.    MS-DOS has no notion of home directory, so Emacs on MS-DOS pretends
  870. that the directory where it is installed is the value of `HOME'
  871. environment variable.  That is, if your Emacs binary, `emacs.exe', is
  872. in the directory `c:/utils/emacs/bin', then Emacs acts as if `HOME'
  873. were set to `c:/utils/emacs'.  In particular, that is where Emacs looks
  874. for the init file `_emacs'.  With this in mind, you can use `~' in file
  875. names as an alias for the home directory, as you would in Unix.  You
  876. can also set `HOME' variable in the environment before starting Emacs;
  877. its value will then override the above default behavior.
  878. File: emacs,  Node: Text and Binary,  Next: Printing and MS-DOS,  Prev: File Names on MS-DOS,  Up: MS-DOS
  879. Text Files and Binary Files
  880. ===========================
  881.    Emacs on MS-DOS distinguishes between text and binary files.  This
  882. distinction is not part of MS-DOS; it is made by Emacs only.  Emacs
  883. treats files of human-readable text (including program source code) as
  884. text files, and treats executable programs, compressed archives, etc.,
  885. as binary files.  Emacs uses the file name to decide whether to treat a
  886. file as text or binary: the variable `file-name-buffer-file-type-alist'
  887. defines the file name patterns which denote binary files.
  888.    Emacs reads and writes binary files verbatim.  Text files use a two
  889. character sequence to end a line: carriage-return (control-m) followed
  890. by newline (control-j).  When you visit a text file, Emacs strips off
  891. these control-m characters; when you write a text file to disk, Emacs
  892. puts them back in.  Thus, the text appears within Emacs with just a
  893. newline character at the end of each line.
  894.    You can tell whether Emacs considers the visited file as text or
  895. binary based on the mode line (*note Mode Line::.).  Text files have a
  896. `T:' marker prefixed to the major mode name; binary files have a `B:'
  897. prefix.
  898.    One consequence of this special format-conversion of text files is
  899. that character positions as reported by Emacs (*note Position Info::.)
  900. do not agree with the file size information known to the operating
  901. system.
  902. File: emacs,  Node: Printing and MS-DOS,  Next: Subprocesses on MS-DOS,  Prev: Text and Binary,  Up: MS-DOS
  903. Printing and MS-DOS
  904. ===================
  905.    Printing commands, such as `lpr-buffer' (*note Hardcopy::.) and
  906. `ps-print-buffer' (*note Postscript::.) can work in MS-DOS by sending
  907. the output to one of the printer ports, if a Unix-style `lpr' program
  908. is unavailable.  A few DOS-specific variables control how this works.
  909.    If you want to use your local printer, printing on it in the usual
  910. DOS manner, then set the Lisp variable `dos-printer' to the name of the
  911. printer port--for example. `"PRN"', the usual local printer port
  912. (that's the default), or `"LPT2"' or `"COM1"' for a serial printer.
  913. You can also set `dos-printer' to a file name, in which case "printed"
  914. output is actually appended to that file.  If you set `dos-printer' to
  915. `"NUL"', printed output is silently discarded.
  916.    If you set `dos-printer' to a file name, it's best to use an
  917. absolute file name.  Emacs changes the working directory according to
  918. the default directory of the current buffer, so if the file name in
  919. `dos-printer' is relative, you will end up with several such files,
  920. each one in the directory of the buffer from which the printing was
  921. done.
  922.    The commands `print-buffer' and `print-region' call the `pr'
  923. program, or use special switches to the `lpr' program, to produce
  924. headers on each printed page.  MS-DOS doesn't normally have these
  925. programs, so by default, the variable `lpr-headers-switches' is set so
  926. that the requests to print page headers are silently ignored.  Thus,
  927. `print-buffer' and `print-region' produce the same output as
  928. `lpr-buffer' and `lpr-region', respectively.  If you do have a suitable
  929. `pr' program (e.g., from GNU Textutils), set `lpr-headers-switches' to
  930. `nil'; Emacs will then call `pr' to produce the page headers, and print
  931. the resulting output as specified by `dos-printer'.
  932.    Finally, if you do have an `lpr' work-alike, you can set
  933. `print-region-function' to `nil'.  Then Emacs uses `lpr' for printing,
  934. as on other systems.  (If the name of the program isn't `lpr', set the
  935. `lpr-command' variable to specify where to find it.)
  936.    A separate variable, `dos-ps-printer', defines how PostScript files
  937. should be printed.  If its value is a string, it is used as the name of
  938. the device (or file) to which PostScript output is sent, just as
  939. `dos-printer' is used for non-PostScript printing.  (These are two
  940. distinct variables in case you have two printers attached to two
  941. different ports, and only one of them is a PostScript printer.)  If the
  942. value of `dos-ps-printer' is not a string, then the variables
  943. `ps-lpr-command' and `ps-lpr-switches' (*note Postscript::.) control
  944. how to print PostScript files.  Thus, if you have a non-PostScript
  945. printer, you can set these variables to the name and the switches
  946. appropriate for a PostScript interpreter program (e.g., Ghostscript).
  947.    For example, to use Ghostscript for printing on an Epson printer
  948. connected to `LPT2' port, put this on your `.emacs' file:
  949.      (setq dos-ps-printer t)  ; Anything but a string.
  950.      (setq ps-lpr-command "c:/gs/gs386")
  951.      (setq ps-lpr-switches '("-q" "-dNOPAUSE"
  952.                  "-sDEVICE=epson"
  953.                  "-r240x72"
  954.                  "-sOutputFile=LPT2"
  955.                  "-Ic:/gs"
  956.                  "-"))
  957. (This assumes that Ghostscript is installed in the `"c:/gs"' directory.)
  958.